# Contributor: Miles Alan <m@milesalan.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=pinephone-call-audio
pkgver=0.1
pkgrel=0
pkgdesc="Voice call audio routing setup tool for Pinephone"
url="https://xnux.eu/devices/feature/audio-pp.html"
license="GPL-3.0-or-later"
arch="aarch64"
makedepends="linux-headers"
source="https://xff.cz/kernels/pinephone-call-audio-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	gcc -o pinephone-call-audio call-audio.c
}

package() {
	install -Dm755 pinephone-call-audio "$pkgdir"/usr/bin/pinephone-call-audio
}

sha512sums="
78470b8e74c103b4008b54eecae50b36a3c87ea9df0a3cfe3870a0815f50ff6a0cecafc05fa2810b400c5653eaf9f8a9b0cedccaae768ac7d0f0e697b8be6eae  pinephone-call-audio-0.1.tar.gz
"
